﻿<Window x:Class="XWord.GUI.Views.CategoryEditView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        Title="编辑分类" SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid Margin="15,10,25,10" Name="grid">
            <Grid.RowDefinitions>
             
                <RowDefinition Height="35"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="130"/>
                <ColumnDefinition MinWidth="250"/>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Text="类别名称：" VerticalAlignment="Center"/>
            <TextBox x:Name="Element_Name" Grid.Column="1" Text="{Binding SelectedItem, UpdateSourceTrigger=PropertyChanged}" d:LayoutOverrides="Height" Grid.Row="1" VerticalAlignment="Center"/>
        </Grid>
        <Border Grid.Row="1">
            <UniformGrid HorizontalAlignment="Right" Margin="0,0,15,0" Rows="1">
                <Button Content="保存" Margin="5" cal:Message.Attach="Save" x:Name="Element_Save"/>
                <Button Content="取消" Margin="5" cal:Message.Attach="Cancel"/>
            </UniformGrid>
        </Border>
    </Grid>
   
</Window>
